﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using WeBlog.Interfaces;

namespace WeBlog.Models
{
    public class Tag : IModel
    {
        [Key]
        public int TagId { get; set; }

        [Required]
        [StringLength(50)]
        public string Name { get; set; }
        
        public virtual ICollection<Post> Posts { get; set; }
    }
}
